package cn.wolfcode.wolf2w.search.repository;

import cn.wolfcode.wolf2w.domain.Strategy;
import cn.wolfcode.wolf2w.search.domain.DestinationEs;
import cn.wolfcode.wolf2w.search.domain.StrategyEs;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;

import java.util.List;

public interface StrategyESRepository extends ElasticsearchRepository<StrategyEs,String> {

    /**
     * 通过目的地名称查出所有的攻略
     * @param destName
     * @return
     */
    List<Strategy> queryByDestName(String destName);
}
